package service;

import org.apache.ibatis.annotations.Param;
import entity.SysUser;
import utils.Page;

import java.util.List;

public interface SysUserService {
    public List<SysUser> getUserList(SysUser user);
    public int saveBatch(List<SysUser> list);
    public int add (SysUser user);
    public boolean update(SysUser sysUser);
    public int delete(Integer id);

    public SysUser login(String account, String password);
    /** 多条件查询用户分页数据 */
    public Page<SysUser> findPage(SysUser entity, Integer pageNo, Integer pageSize);
    public boolean save(SysUser sysUser);
    public SysUser findById(Long id);

    /** 根据 account 账号查找用户详细信息 */
    public SysUser findByAccount(String account);
    public SysUser getByPassword(@Param("password") String password);
}
